package com.ocom.company.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ocom.common.entity.human.EntityBizLeaveApply;
import com.ocom.common.request.ugcapi.GzhUserLeaveList;


/**
 * ka
 */
public interface BizLeaveApplyService extends IService<EntityBizLeaveApply> {

    EntityBizLeaveApply  addApply(Long companyId,EntityBizLeaveApply entityBizLeaveApply);

    boolean updateApply(Long companyId, EntityBizLeaveApply entityBizLeaveApply);

    PageInfo getApplyList(Long companyId, GzhUserLeaveList gzhUserLeaveList);

    EntityBizLeaveApply getApplyOne(Long companyId, EntityBizLeaveApply entityBizLeaveApply);

    Integer queryUserLeave(Long companyId, Long pId);

    boolean save(Long companyId,EntityBizLeaveApply entityBizLeaveApply);

    boolean update(Long companyId,EntityBizLeaveApply entityBizLeaveApply);
}
